import vue from "vue"
import GlobalMovable from  '@/components/movable/movable.vue';
const MovableConstructor= vue.extend(GlobalMovable)
function showMovable(text,duration){
	const MovableDom=new MovableConstructor({
		el:document.createElement('div'),data(){
			return {
				text:text,
			}
		}
	})
	document.body.appendChild(MovableDom.$el)
}
function registryMovable(){
	vue.prototype.$movable=showMovable
}
export default registryMovable